const HOST = 'http://localhost:4000'

class Api {

  private readonly url: URL;

  constructor() {
  }

  async getQuestionList<T = any>(taskId: string) {

    let res: Response = await fetch(`${HOST}/api/mallExtApi/getQuestionByTaskId?taskId=${taskId}`)
    return await res.json()
  }

  submitQuestion<T = any>(data: any) {

  }
}

export default Api
